﻿using XmlStudio.Controllers.Interfaces;
using XmlStudio.Interfaces;

namespace XmlStudio.Controllers {
    /// <summary>
    /// Factory for controller.
    /// </summary>
    public static class ControllerFactory {
        /// <summary>
        /// Creates new xml controller.
        /// </summary>
        /// <param name="model">The model.</param>
        /// <param name="view">View.</param>
        /// <returns>Created xml controller.</returns>
        public static IController CreateController(IXmlModel model, IXmlView view) {
            return new Controller(model, view);
        }

        /// <summary>
        /// Creates the controller.
        /// </summary>
        /// <param name="model">The model.</param>
        /// <param name="view">The view.</param>
        /// <returns></returns>
        public static IController CreateController(IXsdModel model, IXmlView view) {
            return new Controller(model, view);
        }
    }
}
